package com.he.mapper;

import com.he.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: usersync
 * @description:
 * @author: xin.he
 * @create: 2021-06-06 12:21
 **/
@Mapper
@Repository
public interface DeptMapper {
    //查询
    List<Dept> queryAll ();
    //添加数据
    int add(Dept dept);
    //根据部门名查询
    Dept queryByDeptName(String deptName);
    //根据deptId查询
    Dept queryByDeptId(String dId);
    //根据deptId更新parent
    int updateParentByDeptId(String dId);
    //获取deptId列表
    List<String> getDeptIdList();

}
